package com.zy.composeworld.base

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.zy.composeworld.databinding.FragmentComposeBaseBinding

abstract class BaseComposeFragment : Fragment() {

    val TAG: String = this::class.java.simpleName


    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
    ): View? {
        val binding = FragmentComposeBaseBinding.inflate(layoutInflater)
        binding.initView()
        return binding.root
    }

    abstract fun FragmentComposeBaseBinding.initView()

}
